package com.sachin.coherence;

import java.util.List;

import com.tangosol.net.DefaultCacheServer;

public class CoherenceBootup {

	public List start() {

		System.setProperty("tangosol.coherence.override",
				"sachin-tangosol-coherence.xml");
		synchronized (this) {
			return DefaultCacheServer.start();
		}

	}

	public void shutdown() {
		synchronized (this) {
			DefaultCacheServer.shutdown();
		}
	}
}
